const servicesDao = require('../dao/servicesDao');

// 分页查询所有服务
module.exports.findAll = async function (searchObj, page) {
    return await servicesDao.findAll(searchObj, page);
}

// 增加服务
module.exports.insert = async function (services) {
    return await servicesDao.insert(services);
}

//通过id修改服务
module.exports.update = async function (id, services) {
    return await servicesDao.update(id, services);
}

//通过id删除服务
module.exports.delete = async function (id) {
    return await servicesDao.delete(id);
}
